package cn.zhaoyuening.zshop4j.content.service;

import cn.zhaoyuening.zshop4j.common.bean.EasyUiTreeNode;
import cn.zhaoyuening.zshop4j.common.bean.ZShop4jResponceResult;
import cn.zhaoyuening.zshop4j.manager.pojo.TbContent;
import cn.zhaoyuening.zshop4j.manager.pojo.TbContentCategory;

import java.util.List;

/**
 * Created by Zhao on 2017/4/12.
 */
public interface ContentCategoryService  {
    /**
     * 通过父节点ID 获取内容类型列表
     * @param parentId 父内容类型
     * @return 内容类型列表
     */
    List<EasyUiTreeNode> getContentCategoryList(long parentId);

    ZShop4jResponceResult insert(TbContentCategory contentCategory);

    ZShop4jResponceResult delete(TbContentCategory contentCategory);

    ZShop4jResponceResult update(TbContentCategory contentCategory);
}
